package cn.itsource.mapper;

import cn.itsource.pojo.domain.Login;
import cn.itsource.pojo.domain.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 登录表 Mapper 接口
 * </p>
 *
 * @author zong
 * @since 2024-09-03
 */
public interface LoginMapper extends BaseMapper<Login> {
    List<Permission> getPermissionsByLoginId(Long loginId);
    //为什么要用注解
    int addLoginAndRole(@Param("loginId") Long loginId, @Param("roleId")Long roleId,@Param("id") Long id);
}
